package ioperations;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-09-03
 * Time: 23:02
 */
public class ShowOperation implements IOperation{
    @Override
    public void work(BookList bookList){

        System.out.println("显示图书...");
        int currentSize= bookList.getUsedSize();
        for (int i = 0; i <currentSize; i++) {
            System.out.println(bookList.getBook(i));
        }
    }
}
